﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="BoxlikeCmtToolBar.ascx.vb"
    Inherits="FrontEnd_Control_ToolLikeCmt_BoxlikeCmtToolBar" %>
<script type="text/javascript">
    $(function () {
        //croll box sharetoolbar
        jQuery(window).scroll(function (e) {
            var amount = jQuery(window).scrollTop();
            if (amount >= 123) {
                jQuery('#toolbar').addClass("sticked-bar");
            } else {
                jQuery('#toolbar').removeClass("sticked-bar");
            }
        });
    });
    //show hide share tool bar
    $(function () {
        $('.more ,#more-hide').mouseover(function () {
            $('#more-hide').removeClass('hide');
        }).mouseout(function () {
            $('#more-hide').addClass('hide');
        });
    });
    //share facebook popup
    $(function () {
        $(".badge-facebook-share").click(function (e) {
            e.preventDefault();
            var g = $(this);
            var h = g.attr("data-share");
            var f = "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(h);
            //popup
            var _g = 640;
            var _m = 460;
            var _f = window.screen.height / 2 - (_m / 2);
            var _i = window.screen.width / 2 - (_g / 2);
            window.open(f, "Share", "status=1,height=" + _m + ",width=" + _g + ",top=" + _f + ",left=" + _i + ",resizable=0");
        });
    });
    //share twitter popup
    $(function () {
        $(".badge-twitter-share").click(function (e) {
            e.preventDefault();
            var h = $(this);
            var i = h.attr("data-share");
            var g = h.attr("data-title");
            var f = "https://twitter.com/intent/tweet?via=corner14com&source=tweetbutton&original_referer=" + encodeURIComponent(i) + "&text=" + g + "&url=" + encodeURIComponent(i);
            //popup
            var _g = 640;
            var _m = 460;
            var _f = window.screen.height / 2 - (_m / 2);
            var _i = window.screen.width / 2 - (_g / 2);
            window.open(f, "Share", "status=1,height=" + _m + ",width=" + _g + ",top=" + _f + ",left=" + _i + ",resizable=0");
        });
    });
    //share gplus popup
    $(function () {
        $(".badge-gplus-share").click(function (e) {
            e.preventDefault();
            var h = $(this);
            var i = h.attr("data-share");
            var g = h.attr("data-title");
            var f = "https://plus.google.com/share?url=" + encodeURIComponent(i);
            //popup
            var _g = 640;
            var _m = 460;
            var _f = window.screen.height / 2 - (_m / 2);
            var _i = window.screen.width / 2 - (_g / 2);
            window.open(f, "Share", "status=1,height=" + _m + ",width=" + _g + ",top=" + _f + ",left=" + _i + ",resizable=0");
        });
    });
    //share pinterest popup
    $(function () {
        $(".badge-pinterest-share").click(function (e) {
            e.preventDefault();
            var i = $(this);
            var j = i.attr("data-share");
            var h = i.attr("data-img");
            var g = i.attr("data-title");
            var f = "//pinterest.com/pin/create/button/?url=" + encodeURIComponent(j) + "&media=" + encodeURIComponent(h) + "&description=" + g;
            //popup
            var _g = 640;
            var _m = 460;
            var _f = window.screen.height / 2 - (_m / 2);
            var _i = window.screen.width / 2 - (_g / 2);
            window.open(f, "Share", "status=1,height=" + _m + ",width=" + _g + ",top=" + _f + ",left=" + _i + ",resizable=0");
        });
    });
</script>
<div id="toolbar" class="badge-toolbar-pre fixed-wrap-post-bar ">
    <div class="badge-entry-toolbar-sticky post-afterbar-a in-post-top">
        <ul class="badge-item-vote-container horizontal-vote  ">
            <li><a class="badge-item-vote-up up" href="javascript:void(0);"><span>UP</span></a></li>
            <li><a class="badge-item-vote-down down" href="javascript:void(0);"><span>DOWN</span></a></li>
        </ul>
        <div class="share">
            <ul>
                <li>
                    <asp:Literal ID="ltrShareFacebook" runat="server" /></li>
                <li>
                    <asp:Literal ID="ltrShareTwitter" runat="server" /></li>
            </ul>
        </div>
        <div class="others">
            <a class="badge-more-share-button more" href="javascript:void(0);">More</a>
        </div>
        <div id="more-hide" class="badge-more-share-menu popup-menu postpage-share hide">
            <ul>
                <li>
                    <asp:Literal ID="ltrShareGPlus" runat="server" /></li>
                <li>
                    <asp:Literal ID="ltrSharePinterest" runat="server" /></li>
            </ul>
        </div>
        <div class="post-nav">
            <asp:Literal ID="ltrNextPost" runat="server" />
        </div>
    </div>
    <div class="clearfix">
    </div>
</div>
<div style="display: none">
    <asp:HiddenField ID="hidId" runat="server" Value="" />
</div>
